﻿namespace DesignPattern.com.bridge.error {
    public class IEnemy : ICharacter {
        public IEnemy(){ }

        public override void attack(ICharacter target){
            _wea.showShootEffect("声音");
            int atkPlus=0;
            switch (_wea.WeaponEnum){
                case ENUM_WEAPON.gun:
                    _wea.showBulletEffect("攻击弹道 gun");
                    atkPlus = 2;
                    break;
                case ENUM_WEAPON.rocket:
                    _wea.showBulletEffect("攻击弹道 rocket");
                    atkPlus = 3;
                    break;
            }
            _wea.AtkValuePlus=atkPlus;
            _wea.fire(target);

        }
        
        
    }
}